Skip to content

add variable support to CreateStubOverCreateMockArgRector#633

Merged
TomasVotruba merged 1 commit intomainfrom
tv-handle-variable
Feb 3, 2026
Merged

add variable support to CreateStubOverCreateMockArgRector#633
TomasVotruba merged 1 commit intomainfrom
tv-handle-variable

Conversation

@TomasVotruba
Copy link
Member

@TomasVotruba TomasVotruba commented Feb 3, 2026

New use case to flip to createStub():

final class HandleAssignedVariable extends TestCase
{
    public function testThat()
    {
-        $itemMock = $this->createMock(\stdClass::class);
+        $itemMock = $this->createStub(\stdClass::class);


        $items = [
            $itemMock
        ];
    }
}

@TomasVotruba TomasVotruba merged commit 9f5f19d into main Feb 3, 2026
7 checks passed
@TomasVotruba TomasVotruba deleted the tv-handle-variable branch February 3, 2026 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant